package com.tomcat.myapplication.presenter;

import com.tomcat.myapplication.MainActivity;
import com.tomcat.myapplication.bean.DataBean;
import com.tomcat.myapplication.module.MainModule;
import com.tomcat.myapplication.presenter.iPresenter.IMainPresenter;

public class MainPresenter implements IMainPresenter {
    MainActivity activity;
    MainModule module;

    public MainPresenter(MainActivity activity) {
        this.activity = activity;
        this.module = new MainModule(this,activity);
    }
    @Override
    public void getDriverfree(String arriveDT) {
        module.getDriverfree(arriveDT);

    }

    @Override
    public void getDriverfreeSuccess(DataBean dataBean) {
        activity.getDriverfreeSuccess(dataBean);

    }

    @Override
    public void getDriverfreeError(String msg) {
        activity.getDriverfreeError(msg);

    }
}
